﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using HCRS.Implementation;



public partial class test : System.Web.UI.Page
{
    private static Hashtable MM=Hashtable.Synchronized(new Hashtable()) ;
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Write(CFun.UserName());
        AjaxPro.Utility.RegisterTypeForAjax(typeof(test));

        try
        {
            lock (MM.SyncRoot)
            {
                Response.Write(MM[9].ToString());
            }
        }
        catch
        { }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        lock (MM.SyncRoot)
        {
            MM[9] = "asdf";
        }
    }

    [AjaxPro.AjaxMethod]
    public DataSet getdata()
    {
        return HCRS.Implementation.CommonDataAccess.GetTables("select pid,username from hweb_admin");
    }
}
